#ifndef __BSP_USART_H
#define __BSP_USART_H

#include "bsp.h"

extern uint8_t txbuffer[2000];
extern uint8_t rxbuffer[2000];
extern uint16_t tx_size ;
extern uint16_t rx_size ;
extern __IO uint16_t txcount ; 
extern __IO uint16_t rxcount; 

extern uint16_t Rxcouter;
void usart2_config(void);
//void USART2_IRQHandler(void);
void usart1_config(void);
//ErrStatus memory_compare(uint8_t* src, uint8_t* dst, uint16_t length);
void USART1_IRQHandler(void);
void SendOneData(uint8_t buf);

#endif


